package anatex.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import anatex.domain.Document;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

@RooJavaBean
@RooToString
@RooEntity(finders = { "findDocumentRelatedDocumentsByDocument", "findDocumentRelatedDocumentsByDocumentAndRelatedDocument" })
public class DocumentRelatedDocument {

    @ManyToOne
    private Document document;

    @ManyToOne
    private Document relatedDocument;

    @NotNull
    private Integer weight;
}
